home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / space_escape.swf / scripts / DefineSprite_50 / frame_2 / DoAction.as
Text File  |  2007-01-15  |  429b  |  16 lines

  1. xPos = _X;
  2. yPos = _Y;
  3. mcBackground._x -= xPos;
  4. mcBackground._y -= yPos;
  5. mcAnimation._x -= xPos;
  6. mcAnimation._y -= yPos;
  7. var stageWidth = Stage.width;
  8. var stageHeight = Stage.height;
  9. var centerStageX = stageWidth / 2;
  10. var centerStageY = stageHeight / 2;
  11. mcBackground._width = stageWidth;
  12. mcBackground._height = stageHeight;
  13. mcAnimation._x += centerStageX;
  14. mcAnimation._y += centerStageY - stageHeight / 10;
  15. stop();
  16.